package com.lq.dubbo.rocketmq.shop.api;

import com.lq.dubbo.rocketmq.shop.entity.Result;
import com.lq.dubbo.rocketmq.shop.shop_pojo.TradeUser;
import com.lq.dubbo.rocketmq.shop.shop_pojo.TradeUserMoneyLog;

public interface IUserService {
    /**
     * 根据用户id查询用户对象
     *
     * @param userId
     * @return 查询到的用户对象
     */
    TradeUser findOne(Long userId);

    /**
     * 扣减余额
     * @param userMoneyLog
     * @return
     */
    Result updateMoneyPaid(TradeUserMoneyLog userMoneyLog);
}
